<include file="Public/min-header"/>
<div class="wrapper">
  <include file="Public/breadcrumb"/>
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>库存订单发货</h3>
                </div>
                <div class="panel-body">

                    <!--表单数据-->
                    <form method="post" action="" id="order-add">
                        <div class="tab-pane" >
                            <table class="table table-bordered">
                                <tbody>
                                <tr>
                                    <td>物流公司:</td>
                                    <td>
                                    <div class="form-group ">
                                        <div class="col-xs-2">
                                            <input name="shipping_name" id="shipping_name" value="" class="form-control" placeholder="物流公司" />   
                                            <input type="hidden" name="order_id" value="{$order.order_id}">                                     
                                        </div>
                                        <div class="col-xs-2">
                                            <span id="err_shipping_name" style="color:#F00; display:none;">物流公司不能为空</span>
                                        </div>
                                    </div>    
                                    </td>
                                </tr>  
                                <tr>
                                    <td>物流单号:</td>
                                    <td>
                                    <div class="form-group ">
                                        <div class="col-xs-2">
                                            <input name="shipping_code" id="shipping_code" value="" class="form-control" placeholder="物流单号" />                                       
                                        </div>
                                        <div class="col-xs-2">
                                            <span id="err_shipping_code" style="color:#F00; display:none;">物流单号不能为空</span>
                                        </div>
                                    </div>    
                                    </td>
                                </tr>    
                                <tr>
                                    <td>备注:</td>
                                    <td>
                                    <div class="form-group ">
                                        <div class="col-xs-2">
                                            <input name="user_note" id="user_note" value="" class="form-control" placeholder="备注" />                                       
                                        </div>
                                        <div class="col-xs-2">
                                            <span id="err_user_note" style="color:#F00; display:none;">备注不能为空</span>
                                        </div>
                                    </div>    
                                    </td>
                                </tr>                            
                                
                                
                                
                                <!-- <tr>
                                    <td>支付方式</td>
                                    <td>
                                    <div class="form-group ">
                                                                        <div class="col-xs-2">
                                        <select id="payment" name="payment"  class="form-control" >
                                            <volist name="payment_list" id="payment">
                                                <option <if condition="$order[pay_code] eq $payment[code]">selected</if> value="{$payment.code}" >{$payment.name}</option>
                                            </volist>
                                        </select>
                                        </div>
                                    </div>   
                                    </td>
                                </tr> -->
                                                               
                                                                
                                
                                </tbody>
                                </table>
                        </div>
                        <input type="hidden" name="id" value="{$order.order_id}">
                        <button class="btn btn-info" type="button" onclick="checkSubmit()">
                            <i class="ace-icon fa fa-check bigger-110"></i>
                            发货
                        </button>
                    </form> 
                    <script>
                        function checkSubmit()
                        {                           
                           ($.trim($('#shipping_name').val()) == '') && $('#err_shipping_name').show();
                           ($.trim($('#shipping_code').val()) == '') && $('#err_shipping_code').show();
                          
                              
                           $('#order-add').submit();      
                        }
                    </script>
                </div>
            </div>
<!--订单商品信息--> 
            
<!--订单商品信息 end-->
            
            
        </div>    <!-- /.content -->
    </section>
</div>

</body>
</html>